/*
 * File      : bb_assert.h
 * This file is part of Black Bird Simulation Platform
 * Copyright 2013-2020 BB(Black Bird) Development Team.  
 * All rights reserved.
 *
 * Change Logs:
 * Date           Author       Notes
 * 2014-03-21    Holt         First Version
 */
#ifndef __BB_ASSERT_INCLUDE__
#define __BB_ASSERT_INCLUDE__
#ifdef BB_NDEBUG
#define bb_assert(e) ((void)0)
#else
#include "bb_type.h"
#include "bb_except.h"
extern const bb_except_t EXCEPT_assert_failed;
extern void bb_assert(bb_base e);
#define bb_assert(e) ((void)((e)||(RAISE(EXCEPT_assert_failed),0)))
#endif
#endif